<!DOCTYPE html>
<html>


<!-- Mirrored from www.zi-han.net/theme/hplus/ by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:16:41 GMT -->
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>后台管理</title>

    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->

    <style>
        ._page{overflow:hidden;margin:0;padding:0;}
        ._page a{float:right;display:block;overflow:hidden;margin:5px;padding:3px 8px; border:1px solid #CCC;}
        ._page a:hover{background-color:#333;color:#FFF;}
        ._page a.current{background-color:#333;color:#FFF;}
    </style>

    <link href="__PUBLIC__/admin/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/admin/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/admin/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/admin/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <script src="__PUBLIC__/admin/js/jquery.min.js?v=2.1.4"></script>
    <script src="__PUBLIC__/admin/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="__PUBLIC__/admin/js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="__PUBLIC__/admin/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="__PUBLIC__/admin/js/plugins/layer/layer.min.js"></script>
    <script src="__PUBLIC__/admin/js/hplus.min.js?v=4.1.0"></script>
    <script type="text/javascript" src="__PUBLIC__/admin/js/contabs.min.js"></script>
    <script src="__PUBLIC__/admin/js/plugins/pace/pace.min.js"></script>
    <script src="__PUBLIC__/admin/layer/layer.js"></script>

</head>

<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden" >
    <div id="wrapper">
        <!--左侧导航开始-->
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="nav-close"><i class="fa fa-times-circle"></i>
            </div>
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <li class="nav-header">
                        <div class="dropdown profile-element">
                            <span><img alt="image" class="img-circle" src="__PUBLIC__/admin/img/profile_small.jpg" /></span>
                            <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                               <span class="block m-t-xs"><strong class="font-bold">{$user['usernmae']}</strong></span>
                                <span class="text-muted text-xs block">{$user.username}<b class="caret"></b></span>
                                </span>
                            </a>
                            <ul class="dropdown-menu animated fadeInRight m-t-xs">
                                <li><a class="_menuItem" href="#" onclick="change_password()">修改密码</a>
                                </li>
                                <li class="divider"></li>
                                <li><a href="{:U('Public/logout')}" >安全退出</a>
                                </li>
                            </ul>
                        </div>
                        <div class="logo-element">后台
                        </div>
                    </li>
                    <!--菜单栏-->
                    <volist name="menus" id="menus">
                    <li id="{$menus.id}">
                        <a href="#"><i class="fa fa-desktop"></i> <span class="nav-label">{$menus.menu_name}</span><span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <volist name="menus.child" id="vo">
                            <li><a  href="{:U($vo['linkurl'])}">{$vo.menu_name}</a></li>
                            </volist>
                        </ul>
                    </li>
                    </volist>


                </ul>
            </div>
        </nav>
        <!--左侧导航结束-->
        <!--右侧部分开始-->
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                    <div class="navbar-header"><a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>
                        <form role="search" class="navbar-form-custom" method="post" action="http://www.zi-han.net/theme/hplus/search_results.html">
                            <div class="form-group">
                                <input type="text" placeholder="请输入您需要查找的内容 …" class="form-control" name="top-search" id="top-search">
                            </div>
                        </form>
                    </div>
                    <ul class="nav navbar-top-links navbar-right">
                        <li class="dropdown">
                            <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
                                <i class="fa fa-envelope"></i> <span class="label label-warning">16</span>
                            </a>
                            <ul class="dropdown-menu dropdown-messages">
                                <li class="m-t-xs">
                                    <div class="dropdown-messages-box">
                                        <a href="profile.html" class="pull-left">
                                            <img alt="image" class="img-circle" src="__PUBLIC__/admin/img/a7.jpg">
                                        </a>
                                        <div class="media-body">
                                            <small class="pull-right">46小时前</small>
                                            <strong>小四</strong> 这个在日本投降书上签字的军官，建国后一定是个不小的干部吧？
                                            <br>
                                            <small class="text-muted">3天前 2014.11.8</small>
                                        </div>
                                    </div>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <div class="dropdown-messages-box">
                                        <a href="profile.html" class="pull-left">
                                            <img alt="image" class="img-circle" src="__PUBLIC__/admin/img/a4.jpg">
                                        </a>
                                        <div class="media-body ">
                                            <small class="pull-right text-navy">25小时前</small>
                                            <strong>国民岳父</strong> 如何看待“男子不满自己爱犬被称为狗，刺伤路人”？——这人比犬还凶
                                            <br>
                                            <small class="text-muted">昨天</small>
                                        </div>
                                    </div>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <div class="text-center link-block">
                                        <a class="J_menuItem" href="mailbox.html">
                                            <i class="fa fa-envelope"></i> <strong> 查看所有消息</strong>
                                        </a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                        <li class="dropdown">
                            <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
                                <i class="fa fa-bell"></i> <span class="label label-primary">8</span>
                            </a>
                            <ul class="dropdown-menu dropdown-alerts">
                                <li>
                                    <a href="mailbox.html">
                                        <div>
                                            <i class="fa fa-envelope fa-fw"></i> 您有16条未读消息
                                            <span class="pull-right text-muted small">4分钟前</span>
                                        </div>
                                    </a>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <a href="profile.html">
                                        <div>
                                            <i class="fa fa-qq fa-fw"></i> 3条新回复
                                            <span class="pull-right text-muted small">12分钟钱</span>
                                        </div>
                                    </a>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <div class="text-center link-block">
                                        <a class="J_menuItem" href="notifications.html">
                                            <strong>查看所有 </strong>
                                            <i class="fa fa-angle-right"></i>
                                        </a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                        <li class="hidden-xs">
                            <a href="index_v1.html" class="J_menuItem" data-index="0"><i class="fa fa-cart-arrow-down"></i> 购买</a>
                        </li>
                        <li class="dropdown hidden-xs">
                            <a class="right-sidebar-toggle" aria-expanded="false">
                                <i class="fa fa-tasks"></i> 主题
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
            <div class="row content-tabs">
                <button class="roll-nav roll-left J_tabLeft"><i class="fa fa-backward"></i>
                </button>
                <nav class="page-tabs J_menuTabs">
                    <div class="page-tabs-content">
                        <a href="{:U('Index/index')}" class="active J_menuTab" data-id="">首页</a>
                        <if condition="address neq ''">
                            <a href="{:U($address['linkurl'])}" class="active J_menuTab" data-id="">{$address.menu_name}</a>
                        </if>
                    </div>
                </nav>

                <a href="{:U('Public/logout')}" class="roll-nav roll-right J_tabExit"><i class="fa fa fa-sign-out"></i> 退出</a>
            </div>
            <div class="row J_mainContent" id="content-main" style="margin: 0px auto;">




                <block name="body" ></block>
            </div>
            <div class="footer">
                <div class="pull-right">  <a href="http://www.zi-han.net/" target="_blank"></a>
                </div>
            </div>
        </div>
        <!--右侧部分结束-->
        <!--右侧边栏开始-->
        <div id="right-sidebar">
            <div class="sidebar-container">

                <ul class="nav nav-tabs navs-3">

                    <li class="active">
                        <a data-toggle="tab" href="#tab-1">
                            <i class="fa fa-gear"></i> 主题
                        </a>
                    </li>

                </ul>

                <div class="tab-content">
                    <div id="tab-1" class="tab-pane active">
                        <div class="sidebar-title">
                            <h3> <i class="fa fa-comments-o"></i> 主题设置</h3>
                            <small><i class="fa fa-tim"></i> 你可以从这里选择和预览主题的布局和样式，这些设置会被保存在本地，下次打开的时候会直接应用这些设置。</small>
                        </div>
                        <div class="skin-setttings">
                            <div class="title">主题设置</div>
                            <div class="setings-item">
                                <span>收起左侧菜单</span>
                                <div class="switch">
                                    <div class="onoffswitch">
                                        <input type="checkbox" name="collapsemenu" class="onoffswitch-checkbox" id="collapsemenu">
                                        <label class="onoffswitch-label" for="collapsemenu">
                                            <span class="onoffswitch-inner"></span>
                                            <span class="onoffswitch-switch"></span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <div class="setings-item">
                                <span>固定顶部</span>

                                <div class="switch">
                                    <div class="onoffswitch">
                                        <input type="checkbox" name="fixednavbar" class="onoffswitch-checkbox" id="fixednavbar">
                                        <label class="onoffswitch-label" for="fixednavbar">
                                            <span class="onoffswitch-inner"></span>
                                            <span class="onoffswitch-switch"></span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <div class="setings-item">
                                <span>
                        固定宽度
                    </span>

                                <div class="switch">
                                    <div class="onoffswitch">
                                        <input type="checkbox" name="boxedlayout" class="onoffswitch-checkbox" id="boxedlayout">
                                        <label class="onoffswitch-label" for="boxedlayout">
                                            <span class="onoffswitch-inner"></span>
                                            <span class="onoffswitch-switch"></span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <div class="title">皮肤选择</div>
                            <div class="setings-item default-skin nb">
                                <span class="skin-name ">
                         <a href="#" class="s-skin-0">
                             默认皮肤
                         </a>
                    </span>
                            </div>

                        </div>
                    </div>


                </div>

            </div>
        </div>
        <!--右侧边栏结束-->


    </div>


</body>

<script>
    function change_password(){
        layer.open({
                    type: 1,
                    title: false,
                    closeBtn: 0,
                    shadeClose: true,
                    skin: 'demo-class',
                    area: ['', '500px'], //宽高
                    content:'  <div class="middle-box text-center loginscreen  animated fadeInDown" style="height:200px;margin-top:0px;padding-top: 0px;"><div><div><h3 class="logo-name" ><font size="20">修&nbsp;改&nbsp;密&nbsp;码</font></h3> </div><form class="m-t" role="form" action="{:U('Public/change_password')}" method="post" onsubmit="return chkform(this)"><div class="form-group"><input type="password" class="form-control" placeholder="请输入新的密码" required="" id="newpassword1"><input type="hidden" name="userid" value="{$user.id}"></div><div class="form-group"><input type="password" class="form-control" placeholder="再次输入确认密码" name="newpassword" required="" name="newpassword" id="newpassword2"></div><button type="submit" class="btn btn-primary block full-width m-b">确 认 修 改</button></p></form></div></div>'

    });
    }
    //post方法ajax提交
    function chkform(the){
        if($('#newpassword1').val() != $('#newpassword2').val()){
            layer.msg('<font color="red">两次输入不一致！请重新输入！</font>');
            return false;
        }

        if($('#newpassword1').val().length < 6){
            layer.msg('<font color="red">密码长度最低6位</font>');
            return false;
        }
        var that = $(the);
        var url= $(the).attr('action');
        var cs = $(the).serialize();
        //alert(url);

        $.ajax({
            url:url,
            data:cs,
            type:'POST',
            success: function(data){
                if(data.status==1){
                    layer.msg(data.info);
                    var timer = setInterval(function(){
                        clearInterval(timer);
                        window.location.href='{$url}';
                    },2000);
                }else{
                    layer.msg(data.info);

                }
            }
        });

        return false;
    }


    function chkform2(the){
        var that = $(the);
        var url= $(the).attr('action');
        var cs = $('form').serialize();

        $.ajax({
            url:url,
            data:cs,
            type:'POST',
            success: function(data){
                // console.log(data);
                if(data.status==1){
                    layer.msg(data.info);
                    var timer = setInterval(function(){
                        clearInterval(timer);
                        window.location.href='{$url}';
                    },2000);
                }else{
                    layer.msg(data.info);

                }
            }
        });

        return false;
    }

    //get方法ajax提交
    function chkget(the,action){
        var msg = "您真的确定要"+action+"吗？\n\n请确认！";
        if (confirm(msg)==true){
            var url = $('#'+the).attr('href');
            //alert(url);
            $.ajax({
                url:url,
                type:'GET',
                success:function(data){
                    if(data.status==1){
                        layer.msg(data.info);
                        var timer = setInterval(function(){
                            clearInterval(timer);
                            window.location.href=data.url;
                        },2000);
                    }else{
                        layer.msg(data.info);
                    }
                }
            });
        }else{
            return false;
        }
        return false;
    }

    //g删除
    function del(obj,id){
        var msg = "您确定要删除吗？请确认！";
        if (confirm(msg)==true){
            var url = $(obj).attr('href');
            //alert(url);
            $.ajax({
                url:url,
                data:'{id:id}',
                type:'get',
                dataType:'json',
                success:function(data){
                    console.log(data);
                    if(data.status==1){
                        layer.msg(data.info);
                        $(obj).parents('tr').remove();
                    }else{
                        layer.msg(data.info);
                    }
                }
            });
        }else{
            return false;
        }
        return false;
    }


</script>


<!-- Mirrored from www.zi-han.net/theme/hplus/ by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:17:11 GMT -->
</html>
